﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccessLayer;
using System.Data;
using System.Data.OleDb;
using InfoLayer;

namespace ControlLayer
{
    public class BaoCaoMatDoControl
    {
        private BaoCaoMatDoDataAccess baoCaoMatDoDA = new BaoCaoMatDoDataAccess();

        public DataTable LayBangDanhSachBaoCao()
        {
            return baoCaoMatDoDA.LayBangDanhSachBaoCao();
        }

        public void Insert(ref BaoCaoMatDoInfo baoCaoMatDoInfo)
        {
            baoCaoMatDoDA.Insert(ref baoCaoMatDoInfo);
        }

        public void Update(BaoCaoMatDoInfo baoCaoMatDoInfo)
        {
            baoCaoMatDoDA.Update(baoCaoMatDoInfo);
        }

        public void Delete(BaoCaoMatDoInfo baoCaoMatDoInfo)
        {
            baoCaoMatDoDA.Delete(baoCaoMatDoInfo);
        }

        public string TaoMaTuDong(string maGoc, int batDau)
        {
            return baoCaoMatDoDA.TaoMaTuDong(maGoc, batDau);
        }

        public DataTable LayBaoCaoMatDo_MaPhong(String MaLoaiPhong, int ThangBaoCao)
        {
            return baoCaoMatDoDA.LayBaoCaoMatDo_MaPhong(MaLoaiPhong, ThangBaoCao);
        }
    }
}
